package com.studentManagement.serviceImpl;


import com.studentManagement.daoImpl.TeacherDaoImpl;
import com.studentManagement.service.TeacherService;

/**
 * Created by Administrator on 2017/4/25 0025.
 */
public class TeacherServiceImpl implements TeacherService {

    @Override
    /**
    * 方法的功能描述：判断教师id是否可用
    * @params：[teacher_id]
    * @return: boolean */
    public boolean verifyTeacher_id(String teacher_id) {
        String id= null;
        try {
            id = new TeacherDaoImpl().queryTeacherByTId(teacher_id).getTeacher_id();
        } catch (Exception e) {
            return true;
        }
        return false;
    }
}
